//
//  SINAStuHomeCoursItemModel.m
//  sinashebao
//
//  Created by  androidlongs on 2018/1/16.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import "SINAStuSchoolYearScoreModel.h"

@implementation SINAStuSchoolYearScoreModel


-(instancetype)initWithDict:(NSDictionary *)result{
    if (self=[super init]) {
        //[{"score":99.5,"subjectname":"test","teachername":"teacher"}],
        _score=[result[@"score"] floatValue];
        _subjectname=result[@"subjectname"];
        _teachername=result[@"teachername"];
       
        
        //[{"lessonperiod":12,"name":"test","cnt":0}],

        _subName=result[@"name"];
        _subSignTotal=result[@"lessonperiod"];
        _subSignCurrent=result[@"cnt"];
        
    }
    return self;
}
+(instancetype)userWithDict:(NSDictionary *)dict{
    return [[self alloc] initWithDict:dict];
}
@end
